<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="ko">
<head>
<title>기본 예제</title>
<meta name="class-lists" content="jindo.NumberFormatter"/>
<meta name="screenshots" content=""/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta name="description" content="기본적인 예제입니다.">
<link rel="stylesheet" type="text/css" href="../asset/demo.css">
<style type="text/css">
	input { width:400px; font-size:15px; text-align:right; padding:5px; margin:5px 0; }
</style>
</head>
<body>
<script type="text/javascript" src="../asset/demojs/demo.js#header"
     data-title="Jindo Component"
     data-subtitle="=document.title"
     data-backbutton="false"
     data-viewsource="false"
     data-qrcode="true"></script>
	
<div class="demo">
	<div>
    	<input type="text" size="20" id="foo" value="1234567890" />
	</div>
	<div>
		<input type="text" size="20" id="foo2" value="1234567890.12345" />
	</div>
	<div>
		<input type="text" size="20" id="foo3" value="1234567890.12" />
	</div>
</div>

<script type="text/javascript" charset="utf-8" src="../../asset/jindo.desktop.all.ns.js"></script>
<script type="text/javascript" charset="utf-8" src="../../source/jindo.Component.js"></script>
<script type="text/javascript" charset="utf-8" src="../../source/jindo.UIComponent.js"></script>
<script type="text/javascript" charset="utf-8" src="../../source/jindo.Timer.js"></script>
<script type="text/javascript" charset="utf-8" src="../../source/jindo.WatchInput.js"></script>
<script type="text/javascript" charset="utf-8" src="../../source/jindo.TextRange.js"></script>
<script type="text/javascript" charset="utf-8" src="../../source/jindo.Formatter.js"></script>
<script type="text/javascript" charset="utf-8" src="../../source/jindo.NumberFormatter.js"></script>
<script type="text/javascript">
	var oNumberFormatter = new jindo.NumberFormatter(jindo.$('foo'));
	var oNumberFormatter2 = new jindo.NumberFormatter(jindo.$('foo2'), {
		nDecimalPoint : Infinity
	});
	var oNumberFormatter3 = new jindo.NumberFormatter(jindo.$('foo3'), {
		nDecimalPoint : 2
	});
	
	function paintTest() {
		jindo.$('foo').value = '000003478893';
		oNumberFormatter.paint();
	}
</script>
<script type="text/javascript" src="../asset/demojs/demo.js#footer"></script>
</body>
</html>
